<?php
require_once('../../common/_init.php');
require_once(CLASS_PATH."/__autoload.php");


class SearchPrinter extends PageSite
{
	public function get_content()
	{
	
		$_GET['control'] = 'Printer';
		$load_args = array('dt 300', 'html');   // @params 키워드, @params 반환타입 default = '' (json)
		
		require_once(CLASS_PATH."/search/".$_GET['control']."Controller.php");
		require_once(CLASS_PATH."/search/".$_GET['control']."View.php");
		
		$controllerName = $_GET['control']."Controller";
		$controller     = ObjFactory::create($controllerName, $load_args);
		
		
		$view = $controller->get_view();
		$body = $view->display();
		
	    return $body;
	
	/*
	
		$mod = new Navmain($this);
		$navmain = $mod->create();
	
		$mod = new Navsub($this);
		$navsub = $mod->create();
	
	
		$mod = new LayoutResults
		( $this,
		  array(),  // header
		  array($body),  // primary
		  array(),  // secondary
		  array(),  // teritory
		  array(),  // footer1
		  array()   // footer2
		);
		
		return $mod->create();	  
		
	*/	
	}
		
}

$page = new SearchPrinter();   
$page->set_subTitle('뭐고');
$page->create();

echo $page->get_page();

?>